import { View, Image, Text } from "@tarojs/components";
import React, { FC } from "react";

const Empty: FC<{
  text?: string;
  img?: string;
}> = porps => {
  return (
    <View>
      {porps.img && <Image src={porps.img}></Image>}
      {porps.text && <Text>{porps.text}</Text>}
      {porps.children}
    </View>
  );
};
export default Empty;
